Reference for Bava Batra 14:16
כי אתא לקמיה דרבי יוחנן אמר ליה מאי טעמא לא תימא ליה מהא (שיר השירים ח, י) אני חומה ושדי כמגדלות אני חומה זו תורה ושדי כמגדלות
and that they are more in number than the sand? Seeing that of the whole of Israel it is written that they shall be like the sand on the sea shore,<span class="x" onmousemove="('comment',' Gen. XXII, 17. ');"><sup>25</sup></span> how can the righteous alone be more than the sand? — What the verse means, however, is I shall count the deeds of the righteous and they will be more in number than the sand. If then the sand which is the lesser quantity protects [the land] against the sea, how much more must the deeds of the righteous, which are a larger quantity, protect them? When Resh Lakish came before R. Johanan, the latter said to him: Why did you not derive the lesson from this verse, I am a wall and my breasts are like towers,<span class="x" onmousemove="('comment',' Cant. VIII, 10. ');"><sup>26</sup></span> where 'I am a wall' refers to the Torah, and 'my breasts are like towers'